package dao;

import java.util.List;

import model.ProductCartDetail;
import pojo.Cart;
import pojo.CartDetail;

public interface CartDAO {
	public List<Cart> getAllCart();
	public Cart getCartByID(String id);
	public CartDetail getCartDetailByID(int id);
	
	public boolean addCart(Cart cartCheckout, List<ProductCartDetail> lstProductCart);
	
	public List<Cart> getListCartByEmail(String email);
	public List<Cart> getListCartByEmail(String email, int sortby);
	
	public boolean deleteCart(String idCart);
	public boolean deleteCartDetail(int idcartdetail);
}
